import { mock, Random } from 'mockjs'

const msgConfig = [
    {
        url: '/api/msg',
        method: "get",
        render: config => {
            return mock({
                code: 200,
                'data|10': [{
                    'id|+1': 1,
                    'title': '@string',
                    'type|0-2': 2,
                    'content': '@natural(16, 80)',
                    'date': `@now('minute')`, 
                }]
            })
        }
    }
]

export default msgConfig

